class Solution(object):
    def reverseWords(self, s):
        """
        :type s: str
        :rtype: str
        """
        return " ".join(word[::-1] for word in s.split())    # " "引号中间有一个空格，表示每个单词之间用空格隔开
if __name__ == '__main__':    
    s = "Let's take LeetCode contest"    
    print(Solution().reverseWords(s))